package com.yonyou.sto.modules.ims.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yonyou.sto.modules.ims.model.ImsParty;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aegon
 * @since 2020-09-15
 */
public interface ImsPartyMapper extends BaseMapper<ImsParty> {

    /**
     * 查询此组织的单据数量
     * @param id
     * @return
     */
    int getInvoiceSize(@Param("id") Long id);

    /**
     * 根据收款单位编码查询单位
     * @param sellerSn
     * @return
     */
    ImsParty getPartyBySellerSn(@Param("sellerSn") String sellerSn);

    List<ImsParty> getPartyByVerifyUsername(@Param("username") String username);
}
